package cn.shengongying.admin.dto;

import cn.shengongying.bean.DataTablePageResult;
import cn.shengongying.model.ArticleList;
import lombok.Getter;
import lombok.Setter;

/**
 * author: RXK
 * date: 2022/2/21 星期一
 * desc:
 */
@Setter
@Getter
public class ArticleListInDTO extends DataTablePageResult {

    private Long id;

    private String title;

    private String description;

    private String images;

    private String video;

    private String url;

    private String content;

    private Integer type;

    private String city;

    private Integer wight;


    public ArticleList articleList() {
        ArticleList articleList = new ArticleList();
        articleList.setId(this.getId());
        articleList.setTitle(this.title);
        articleList.setVideo(this.video);
        articleList.setUrl(this.url);
        articleList.setCity(this.city);
        articleList.setType(this.type);
        articleList.setContent(this.content);
        articleList.setWight(this.wight);
        articleList.setDescription(this.description);
        return articleList;
    }

}
